<include file="../header" />
<body class="J_scroll_fixed">
    <script>


    </script>
<form class="well form-search" method="post" style="float:left" action="{:U('withdraw/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            状态：{:getEnumSelectWidget($statusEnum, "w#status", $status, 1)}
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('withdraw/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>用户昵称</th>
            <th>创建时间</th>
            <th>金额</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="withdrawList" item="vo">
            <tr>
                <td>{$vo.nickname}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.money}元</td>
                <td>{:getEnumString($statusEnum, $vo['status'])}</td>
                <td>
                    <if condition = "$vo['status'] eq $statusEnum['WAITING']">
                        <a href='{:U("withdraw/endWithdraw",array("id"=>$vo["withdraw_id"]))}'>处理完成</a>
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>